//
//  PaymentConfig.swift
//  SevenAISDK
//
//  Created by 七块 on 2025/7/3.
//

import Foundation

/// 支付回调
public enum SevenBlockSDKPaymentListener{
    /// 发起扣款请求
    /// - Parameter data: 扣款数据
    case requestConsume(data:ConsumeData)
    
    /// 通知客户执行充值操作
    /// - Parameter data: 充值数据
    case doRecharge(data:ConsumeData)
}
/// 消费参数
public struct ConsumeData:Codable {
    /// 消费id
    public var consumeId:String
    /// 消费类型
    public var type:Int
    /// 消费金额
    public var amount:Double
    
    init(consumeId: String, type: Int, amount: Double) {
        self.consumeId = consumeId
        self.type = type
        self.amount = amount
    }
}
